﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _6___Integers
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] list = new int[100000];
            for (int i = 0; i < 100000; i++)
            {
                list[i] = i;
            }
            
            //var result = list.AsParallel().Where(x => x % 21 == 0);
            //foreach (var item in result)
            //{
            //    Console.WriteLine(item);
            //}

            var linqResult =
                from num in list
                where num % 21 == 0
                select num;

            foreach (var item in linqResult)
            {
                Console.WriteLine(item);
            }
        }
    }
}
